public class ShowCommandPromtExample {
 
    /**
     * @param args
     */
    public static void main(String[] args) throws Exception {
        Process process = new ProcessBuilder(new String[] { "cmd", "/C",
                "start", "cmd" }).start();
        System.out.println(process.waitFor());
        
        System.out.println("Test");
    }
}